/**
 * Created by A on 2016/8/18.
 */
var webpack = require('webpack')

module.exports = {
    entry: {
        'app': './application/index/view/index/src/app.js'
    },
    output: {
        path: './public/mobile/dist',
        filename: '[name].bundle.js',
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel'
            },
            {
                test: /\.vue$/,
                //exclude: /node_modules/,
                loader: 'vue-loader'
            },
            {
                test: /\.css$/,
                loader: 'style!css'
            },
            {
                test: /\.scss$/,
                loader: 'style!css!sass'
            }
        ]
    },
    resolve: {
        alias: {
            'vue$': 'vue/dist/vue.js'
        }
    },
    devtool: 'source-map',
    plugins: [
        new webpack.DllReferencePlugin({
            context: __dirname,
            manifest: require('../public/mobile/vendors/vendors_manifest.json')  // 这个路径是相对于本文件的
        })
    ]
};